import request from '@/config/axios'

export interface DeliveryPickUpStoreVO {
  id: number
  typeName: string
  picUrl: string
  goUrl: string
}

// 查询店铺分类列表
export const getDeliveryPickUpStorePage = async (params: any) => {
  return await request.get({ url: '/trade/life-circle/store-type/page', params })
}

// 查询店铺分类详情
export const getDeliveryPickUpStore = async (id: number) => {
  return await request.get({ url: '/trade/life-circle/store-type/get?id=' + id })
}


// 新增店铺分类
export const createDeliveryPickUpStore = async (data: DeliveryPickUpStoreVO) => {
  return await request.post({ url: '/trade/life-circle/store-type/create', data })
}

// 修改店铺分类
export const updateDeliveryPickUpStore = async (data: DeliveryPickUpStoreVO) => {
  return await request.put({ url: '/trade/life-circle/store-type/update', data })
}

// 删除店铺分类
export const deleteDeliveryPickUpStore = async (id: number) => {
  return await request.delete({ url: '/trade/life-circle/store-type/delete?id=' + id })
}